package com.itgt.renwu2;

import java.util.Arrays;

public class ArrayPoet {

public static void main(String[] args) {
		
		// 声明一个用来存放 char[] 类型数值的 数组 变量
		// 并通过 数组常量 对数组予以初始化
		char[][] cx = { 
						{ '春' , '眠' , '不' , '觉' , '晓' } , 
						{ '处' , '处' , '闻' , '啼' , '鸟' } , 
						{ '夜' , '来' , '风' , '雨' , '声' } , 
						{ '花' , '落' , '知' , '多' , '少' } 
					  };
		
		// 遍历二维数组
		for( int i = 0 ; i < cx.length ; i++ ) {
			char[] xiaoshuzu = cx[ i ];
			for( int j = 0 ; j < xiaoshuzu.length ; j++ ) {
				char ch = xiaoshuzu[ j ];
				System.out.print( ch + "\t");
			}
			System.out.println();
		}
		
		System.out.println( "- - - - - - - - - - - - - - - - - - - - -" );
		
		for( int i = 0 ; i < cx.length ; i++ ) {
			for( int j = 0 ; j < cx[ i ].length ; j++ ) {
				char ch = cx[ i ][ j ];
				System.out.print( ch + "\t");
			}
			System.out.println();
		}
		System.out.println( "- - - - - - - - - - - - - - - - - - - - -" );
		char[][] poet = new char[5][4];
		for( int i = 0 ; i < poet.length ; i++ ) {
			for( int j = 0 ; j < poet[ i ].length ; j++ ) {
				poet[i][j] = cx[ 3-j ][ i ];
				System.out.print( poet[i][j] + "\t");
			}
			System.out.println();
		}
		
	}

}
